package com.mer.controller;

import com.mer.mapper.OrderMemberMapper;
import com.mer.service.OrderMemberService;
import com.mer.service.OrderTeacherService;
import com.mer.vo.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: IIPhase-project
 * @description: 人员订单记录控制层
 * @author: 张庆恒
 * @create: 2021-10-22 20:46
 **/
@RestController
@RequestMapping("/order/member")
@Api(tags = "用户详情")
public class OrderMemberController {
    @Resource
    private OrderMemberService orderMemberService;
    @PostMapping("/queryAllMemberById/{memberId}")
    @ApiOperation("用过memberId查询所有的用户信息")
    public CommonResult queryAllMemberById(@PathVariable("memberId") @RequestBody String memberId){
        return orderMemberService.queryMemberById(memberId);
    }
}
